package com.itita.ww2.model.area;

public class AreaCityBattle extends BaseArea {
	private int blockId;
	private int cityId;

	public AreaCityBattle(int blockId, int cityId) {
		this.blockId = blockId;
		this.cityId = cityId;
	}

	@Override
	public boolean equals(Object obj) {
		if (super.equals(obj)) {
			// 进一步判断两个id是否相等
			AreaCityBattle ref = (AreaCityBattle) obj;
			return ref.blockId == this.blockId && ref.cityId == this.cityId;
		}
		return false;
	}
}
